<?php
namespace Home\Controller;
use Think\Controller;
class MoodController extends Controller{
	//增加动态
	public function addMood(){
		$data['uid']=I('post.uid')?I('post.uid'):'';
		$data['isdisplay']=I('post.isdisplay')?I('post.isdisplay'):'';
		$data['content']=I('post.content')?I('post.content'):'';
		foreach($data as $v){
			if(!$v){
				$this->ajaxReturn(array('status'=>2));
			}
		}
		$moodModel=D('mood');
		$moodInfo=$moodModel->addMode($data);
		if($moodInfo!==false){
			$this->ajaxReturn($moodInfo);
			
		}else{
			$this->ajaxReturn(array('fh'=>$moodInfo));
		}
	}
	public function add(){
		$a = 0;
	}
}
?>